package com.future.wxapp.pedometer.dao;

import com.alibaba.fastjson.JSONObject;
import com.future.wxapp.common.config.MyMapper;
import com.future.wxapp.pedometer.domain.StepNumber;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Calendar;
import java.util.Date;
import java.util.List;

@Repository
public interface StepNumberDao extends MyMapper<StepNumber> {
    Long todayTotalStep(@Param("begin") Date begin, @Param("end") Date end);

    List<JSONObject> todayStepCountByType(@Param("begin") Date begin, @Param("end") Date end);
}